package edu.sctu.zhoumengxue.day20150526.mappractise;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * Created by user12 on 2015/5/26.
 */
public class AddList {

    public List<String> setAddList(){
        List<String> list = new ArrayList<String>();
        list.add("张三");
        list.add("李四");
        list.add(0,"王五");
        return list;

    }

    public List<String> setListSys(){
        List<String> list = setAddList();
        for (int i = 0; i <list.size() ; i++) {
            System.out.println(list.get(i));
        }
        return list;
    }
    public List<HashMap<String,List<StudentsAppbean>>> hashMapList(){
        List<HashMap<String,List<StudentsAppbean>>> list = new ArrayList<HashMap<String, List<StudentsAppbean>>>();
        HashMap<String,List<StudentsAppbean>> map = new HashMap<String,List<StudentsAppbean>>();

        List<StudentsAppbean> listmap = new ArrayList<StudentsAppbean>();
        StudentsAppbean student = new StudentsAppbean();
        student.setName("张三");
        listmap.add(student);
        map.put("1",listmap);
        list.add(map);
        return list;
    }
}
